package io.github.tuuzed.hydrogen.simple;


import android.app.Application;

import io.github.tuuzed.hydrogen.Hydrogen;

public class App extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        Hydrogen.getInstance()
                .setDebug(BuildConfig.DEBUG)
                .setmDbName("simple.db")
                .setCursorFactory(null)
                .setVersion(1, null)
                .addModel(UserModel.class)
                .create(this);
    }

    @Override
    public void onTerminate() {
        super.onTerminate();
        Hydrogen.getInstance().terminate();
    }
}
